#ifndef TIMER_H_
#define TIMER_H_

#include <targets/liblpc2000.h>
#include <targets/LPC2378.h>
#include <ctl_api.h>

#define TIMER_DT            1000
#define TIMER_MAX_CALLBACKS 5

typedef void (*timer_callback_t)(void);

void timer_enable(void);

/* Millisecond delay */
void delay_ms(unsigned int delay);

/* Microsecond delay */
void delay_us(unsigned int delay);

#endif